/* pages/campExchange/campExchange.wxss */
.forum-page {
  padding: 16px;
  background-color: #f8f9fa;
}

.post-card {
  background: #ffffff;
  border-radius: 12px;
  margin-bottom: 16px;
  padding: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.post-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nickname {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.post-content {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.post-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.post-image {
  width: 120rpx;
  height: 120rpx;
  border-radius: 6px;
  object-fit: cover;
  transition: transform 0.2s;
}

.post-image:hover {
  transform: scale(1.1);
}

.publish-btn {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 140px;
  height: 50px;
  border-radius: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(45deg, #fbc400, #f8a900);
  color: white;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.publish-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.popup-content {
  padding: 16px;
  background-color: #ffffff;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.hidden-content {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 显示两行 */
  -webkit-box-orient: vertical;
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}

.toggle-text {
  color: #1989fa;
  cursor: pointer;
  font-size: 14px;
  margin-top: 8px;
  text-decoration: underline;
}

.post-addr {
  display: flex;
  align-items: center;
  color: #888;
  font-size: 14px;
  margin-top: 8px;
}

.post-addr van-icon {
  margin-right: 4px;
}

.img-box {
  margin-top: 12px;
}

.image-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.uploaded-image {
  position: relative;
}

.image {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.delete-icon {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  padding: 2px;
}

.upload-button {
  width: 80px;
  height: 80px;
  border: 2px dashed #ddd;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.upload-button:hover {
  border-color: #1989fa;
}

/* 时间显示 */
.post-time {
  font-size: 24rpx;
  color: #999;
  margin-top: 4rpx;
  margin-bottom: 10rpx;
}

/* 如果需要将时间与昵称对齐，可以使用类似如下方式 */
.post-header {
  display: flex;
  align-items: center;
}

.nickname {
  font-size: 32rpx;
  font-weight: bold;
  margin-right: 10rpx;
}

.post-time {
  font-size: 24rpx;
  color: #999;
  margin-top: 4rpx;
}

/* 其他样式 */
.post-card {
  padding: 20rpx;
  border: 1px solid #f0f0f0;
  margin-bottom: 20rpx;
  background-color: #fff;
}
